package com.dev.op.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @TableName user_role
 */
@TableName(value ="user_role")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserRole {
    /**
     * 
     */
    @TableField(value = "role_id")
    private String roleId;

    /**
     * 
     */
    @TableId(value = "user_id")
    private String userId;

    /**
     * 
     */
    @TableField(value = "role_name")
    private String roleName;

    @Override
    public String toString() {
        return "UserRole{" +
                "roleId='" + roleId + '\'' +
                ", userId='" + userId + '\'' +
                ", roleName='" + roleName + '\'' +
                '}';
    }
}